#include "SMPPItsSessionInfo.hpp"

using namespace smpp::pdu;

ItsSessionInfo::ItsSessionInfo(const quint16 nValue):
TLV(TLVtags::TAG_ITS_SESSION_INFO,2),_Value(nValue){}

ItsSessionInfo::ItsSessionInfo(const ItsSessionInfo &nItsSessionInfo):
TLV(nItsSessionInfo),_Value(nItsSessionInfo.getValue()){}

bool ItsSessionInfo::operator ==(
	const ItsSessionInfo &nItsSessionInfo) const{
	return (TLV::operator == (nItsSessionInfo) && 
		_Value == nItsSessionInfo.getValue());
}

bool ItsSessionInfo::operator !=(
	const ItsSessionInfo &nItsSessionInfo) const{
	return !this->operator == (nItsSessionInfo);
}

ItsSessionInfo &ItsSessionInfo::operator = (
	const ItsSessionInfo &nItsSessionInfo){
	if(*this == nItsSessionInfo)
		return *this;
	TLV::operator = (nItsSessionInfo);
	_Value = nItsSessionInfo.getValue();
	return *this;
}

void ItsSessionInfo::setValue(const quint16 nValue){
	_Value = nValue;
}

const quint16 ItsSessionInfo::getValue() const{
	return _Value;
}
